//
//  JGTabBar.h
//  WangYLottery
//
//  Created by JJetGu on 15/8/19.
//  Copyright (c) 2015年 JJetGu. All rights reserved.
//

#import <UIKit/UIKit.h>

// block作用：保存一段代码，到恰当的时候再去调用

@class JGTabBar;

@protocol JGTabBarDelegate <NSObject>

@optional
-(void) tabBar:(JGTabBar *)tabBar didSelectedIndex:(NSInteger) index;

@end

@interface JGTabBar : UIView

@property (nonatomic, weak)id<JGTabBarDelegate> delegate;

- (void)addTabBarButtonWithImageName:(NSString *)name selImageName:(NSString *)selName;

@end
